import DrawV1 from "../../../engine/comps/DrawV1";
import User from "../../User";

const { ccclass, property } = cc._decorator;

@ccclass
export default class ColorRoomView extends cc.Component {


    @property(cc.Sprite)
    colorSprite: cc.Sprite = null;


    @property(cc.Prefab)
    roomViewPrefab: cc.Prefab = null;

    @property(DrawV1)
    draw: DrawV1 = null;

    changeColor(color: cc.Color) {
        // cc.log(' color ', color)
 
        this.colorSprite.node.color = color;
    }



    onButtonOpenRoom() {
        // User.setImgData(this.draw.getData())
        // this.node.addChild(cc.instantiate(this.roomViewPrefab))
    }

}
